Cleanup x86/x86_64 apic.c files.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 15 Feb 2006 14:13:10 +0000 (14:13 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 15 Feb 2006 14:13:10 +0000 (14:13 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
linux-2.6-xen-sparse/arch/i386/kernel/apic-xen.c
linux-2.6-xen-sparse/arch/x86_64/kernel/apic-xen.c
linux-2.6-xen-sparse/drivers/xen/core/smpboot.c

index 5ba0be371a31cef17d07eaa7b1267ff391c2b302..bee39abf964090e4a5bbcd79da4edf8ef61fa8d0 100644 (file)
@@ -60,11 +60,6 @@ int enable_local_apic __initdata = 0; /* -1=force-disable, +1=force-enable */
  */
 int apic_verbosity;
 
-int get_physical_broadcast(void)
-{
-        return 0xff;
-}
-
 /*
  * 'what should we do if we get a hw irq event on an illegal vector'.
  * each architecture has to answer this themselves.
@@ -83,12 +78,19 @@ void ack_bad_irq(unsigned int irq)
        ack_APIC_irq();
 }
 
+int get_physical_broadcast(void)
+{
+        return 0xff;
+}
+
 #ifdef CONFIG_XEN
 void switch_APIC_timer_to_ipi(void *cpumask) { }
 EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
 void switch_ipi_to_APIC_timer(void *cpumask) { }
 EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
-#else
+#endif
+
+#ifndef CONFIG_XEN
 #ifndef CONFIG_SMP
 static void up_apic_timer_interrupt_call(struct pt_regs *regs)
 {
@@ -120,12 +122,12 @@ void smp_send_timer_broadcast_ipi(struct pt_regs *regs)
 #endif
        }
 }
+#endif
 
 int setup_profiling_timer(unsigned int multiplier)
 {
        return -EINVAL;
 }
-#endif
 
 /*
  * This initializes the IO-APIC and APIC hardware if this is
index d82b568b4ff09d899cf235c6c5939b39790a2fd4..66a432a32ca5e7cf529ee883c364f121a4f65f26 100644 (file)
 #include <asm/hpet.h>
 #include <asm/idle.h>
 
-/*
- * Debug level
- */
 int apic_verbosity;
-int disable_apic;
+
+#ifdef CONFIG_XEN
+void switch_APIC_timer_to_ipi(void *cpumask) { }
+EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
+void switch_ipi_to_APIC_timer(void *cpumask) { }
+EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
+#endif
+
+int setup_profiling_timer(unsigned int multiplier)
+{
+       return -EINVAL;
+}
 
 void smp_local_timer_interrupt(struct pt_regs *regs)
 {
@@ -159,17 +167,7 @@ asmlinkage void smp_error_interrupt(void)
        irq_exit();
 }
 
-int get_physical_broadcast(void)
-{
-        return 0xff;
-}
-
-#ifdef CONFIG_XEN
-void switch_APIC_timer_to_ipi(void *cpumask) { }
-EXPORT_SYMBOL(switch_APIC_timer_to_ipi);
-void switch_ipi_to_APIC_timer(void *cpumask) { }
-EXPORT_SYMBOL(switch_ipi_to_APIC_timer);
-#endif
+int disable_apic;
 
 /*
  * This initializes the IO-APIC and APIC hardware if this is
index 8f057f9f7c82e7277e32137d320cfb03f5b3a7c3..4c72930e864e0983270f9e82770bba273156266a 100644 (file)
@@ -432,11 +432,12 @@ void __init smp_cpus_done(unsigned int max_cpus)
 {
 }
 
+#ifndef CONFIG_X86_LOCAL_APIC
 int setup_profiling_timer(unsigned int multiplier)
 {
-       /* Dummy function. */
-       return 0;
+       return -EINVAL;
 }
+#endif
 
 /*
  * Local variables: